#ifndef LENSCOMPENSATION_H
#define LENSCOMPENSATION_H
#include <QtCore/QSettings>
/**
 * @brief The LensCompensation class 实现对物镜的各种补偿的计算
 */
class LensCompensation
{
public:
    LensCompensation();
    void loadSettings(QSettings &settings);

    double xCompensate(int oldlens, int newlens);
    double yCompensate(int oldlens, int newlens);
    double workingDistanceCompensate(int oldlens, int newlens);
private:
    double m_lensWD[6];
    double m_lensX[6];
    double m_lensY[6];
};

#endif // LENSCOMPENSATION_H
